/*
 * @Author: 张仁会 28396543@qq.com
 * @Date: 2022-03-24 09:33:24
 * @LastEditors: 张仁会 28396543@qq.com
 * @LastEditTime: 2022-09-08 11:48:53
 * @FilePath: \react-app\src\router\index.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { lazy } from "react";
let routes = [
    {
        path: '/login',
        component: lazy(() => import('../pages/login/login')),
        meta: {},
    },
    {
        path: '/layout',
        component: lazy(() => import('../pages/layout/layout')),
        meta: {},
        children: [
            {
                path: '/layout/user',
                component: lazy(() => import('../pages/user/user')),
                meta: { title: '用户管理', isShow: true }
            },
            {
                path: '/layout/jiaose',
                component: lazy(() => import('../pages/jiaose/jiaose')),
                meta: { title: '角色管理', isShow: true },
                children: []
            },
            {
                path: '/layout/car',
                component: lazy(() => import('../pages/car/car')),
                meta: { title: '菜单管理', isShow: true },
                children: []
            },
            {
                path: '/layout/footerPrice',
                component: lazy(() => import('../pages/footerPrice')),
                meta: { isShow: false },
            }
        ]
    },
]

export default routes